<%@ page language="java" errorPage="error.jsp" pageEncoding="UTF-8"
	contentType="text/html;charset=utf-8"%>
<%@ include file="Common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<%@ include file="Common/metalink.jsp"%>
<script src="Scripts/common.js" type="text/javascript"></script>
<script src="/Scripts/jquery-1.3.2.min.js" type="text/javascript"></script>
</head>
<body>
	<!-- start of wrapper-->
<div class=" Wrapper">
	<%@ include file="Common/header.jsp"%>
	<%@ include file="Common/menu.jsp"%>
    <!-- start of content -->
    <div class="Content">
        <div class="Right Sub Sar">
            <div class="Bugicon Midbox">
				项目概况
            </div>
            <div class="SearchBox">
                <div class="left BiggestFont">
                    <a class="bugs-total" href="allbug.html">
						Bug总数:<span class="num">${homeBean.allBugCount }</span>
                    </a>
                    <img src="Content/images/line.gif" class="SLine" />
                    <a class="bugs-unfix" href="allbug.html?method=unfix">
						未修复的Bug数:<span class="num">${homeBean.unfixBugCount }</span>
                    </a>
                    <img src="Content/images/line.gif" class="SLine" />
                    <a class="bugs-approval" href="allbug.html?method=approval">
						待审核的Bug数:<span class="num">${homeBean.approvalBugCount }</span>
                    </a>
                    <img src="Content/images/line.gif" class="SLine" />
                    <a class="bugs-fix" href="allbug.html?method=closed" >
						已关闭的Bug数:<span class="num">${homeBean.closedBugCount }</span>
                    </a>
                    <img src="Content/images/line.gif" class="SLine" />
                </div>
                <a href="inputbug.html" class="button-create" style="margin-top: 10px;">
                	<span>提交新Bug</span>
				</a>
                <div class="clear">
                    <!-- -->
                </div>
            </div>
            <!--start of solution-->
            <div class="Solution ScaleBox left">
                <div class="gantan Urgently left">
                    <b>紧急待处理的BUG</b>
                </div>
                <a href="allbug.html?method=unfix" class="right Blue margintop10">更多...</a>
                <br class="clear" />
                <div class="BlueBorder_btm">
                    <!-- -->
                </div>
                <c:if test="${empty homeBean.urgentlyBugList}">
                	暂无数据
                </c:if>
                <c:if test="${not empty homeBean.urgentlyBugList}">
                <table border="0" width="100%" cellpadding="10" cellspacing="0" class="Bug box">
                    <tr class="BlueBackground Black BugTitle TableTop">
                        <td width="50%">
                            <b>标题</b>
                        </td>
                        <td>
                            <b>优先级</b>
                        </td>
                        <td>
                            <b>分配人</b>
                        </td>
                        <td>
                            <b>处理人</b>
                        </td>
                    </tr>
                    <c:forEach var="bug" items="${homeBean.urgentlyBugList }" varStatus="status">
                    <tr class="GrayBackground">
                        <td>
                            <a href="todealbug.html?id=${bug.id }" class="Blue BiggerFont" target="_blank">
                                <b>${bug.id }#&nbsp;${bug.title }</b>
                            </a>
                        </td>
                        <c:choose>
                        	<c:when test="${bug.priority == 1 }">
		                        <td class="Green">
		                            ${bug.priorityName }
		                        </td>
                        	</c:when>
                        	<c:when test="${bug.priority == 2 }">
		                        <td class="ThinGreen">
		                            ${bug.priorityName }
		                        </td>
                        	</c:when>
                        	<c:when test="${bug.priority == 3 }">
		                        <td class="Orange">
		                            ${bug.priorityName }
		                        </td>
                        	</c:when>
                        	<c:when test="${bug.priority == 4 }">
		                        <td class="Pink">
		                            ${bug.priorityName }
		                        </td>
                        	</c:when>
                        	<c:when test="${bug.priority == 5 }">
		                        <td class="Red">
		                            ${bug.priorityName }
		                        </td>
                        	</c:when>
                        	<c:otherwise>
                        		<td>
		                            ${bug.priorityName }
		                        </td>
                        	</c:otherwise>
                        </c:choose>
                        <td>
                            ${bug.assignerName}
                        </td>
                        <td>
                            ${bug.handlerName}
                        </td>
                    </tr>
                    </c:forEach>
                </table>
                </c:if>
            </div>
            <!--end of solution-->
            <!--start of solution-->
            <div class="Solution ScaleBox right">
                <div class="gantan Newbug left">
                    <b>最新Bug</b>
                </div>
                <a href="allbug.html" class="right Blue margintop10">更多...</a>
                <br class="clear" />
                <div class="BlueBorder_btm">
                    <!-- -->
                </div>
                <c:if test="${empty homeBean.newBugList}">
                	暂无数据
                </c:if>
                <c:if test="${not empty homeBean.newBugList}">
                <table border="0" width="100%" cellpadding="10" cellspacing="0" class="Bug box">
                    <tr class="BlueBackground Black BugTitle TableTop">
                        <td width="50%">
                            <b>标题</b>
                        </td>
                        <td>
                            <b>优先级</b>
                        </td>
                        <td>
                            <b>分配人</b>
                        </td>
                        <td>
                            <b>处理人</b>
                        </td>
                    </tr>
                    <c:forEach var="bug" items="${homeBean.newBugList }" varStatus="status">
                    <tr class="GrayBackground">
                        <td>
                            <a href="todealbug.html?id=${bug.id }" class="Blue BiggerFont" target="_blank">
                                <b>${bug.id }#&nbsp;${bug.title }</b>
                            </a>
                        </td>
                        <c:choose>
                        	<c:when test="${bug.priority == 1 }">
		                        <td class="Green">
		                            ${bug.priorityName }
		                        </td>
                        	</c:when>
                        	<c:when test="${bug.priority == 2 }">
		                        <td class="ThinGreen">
		                            ${bug.priorityName }
		                        </td>
                        	</c:when>
                        	<c:when test="${bug.priority == 3 }">
		                        <td class="Orange">
		                            ${bug.priorityName }
		                        </td>
                        	</c:when>
                        	<c:when test="${bug.priority == 4 }">
		                        <td class="Pink">
		                            ${bug.priorityName }
		                        </td>
                        	</c:when>
                        	<c:when test="${bug.priority == 5 }">
		                        <td class="Red">
		                            ${bug.priorityName }
		                        </td>
                        	</c:when>
                        	<c:otherwise>
                        		<td>
		                            ${bug.priorityName }
		                        </td>
                        	</c:otherwise>
                        </c:choose>
                        <td>
                            ${bug.assignerName}
                        </td>
                        <td>
                            ${bug.handlerName}
                        </td>
                    </tr>
                    </c:forEach>
                </table>
                </c:if>
            </div>
            <!--end of solution-->
        </div>
        <div class="clear">
            <!-- -->
        </div>
    </div>

    <!-- end of content -->
    <div class="clear">
        <!-- -->
    </div>
    <br />
</div>
<!-- end of wrapper-->
<%@ include file="Common/footer.jsp"%>
</body>
</html>